package com.chianghao.rock.common;

import org.springframework.stereotype.Component;

import com.chianghao.core.seq.SnowflakeIdWorker;

@Component
public class SequenceService{
	
	final static SnowflakeIdWorker snowflakeInWorker = new SnowflakeIdWorker(1, 1);
	
	public long getNextId() {
		return snowflakeInWorker.nextId();
	}
	
}
